/*
*****************************************************
These buttons use the Gov.uk style and meet WCAG 2.2.
*****************************************************
*/

html,
* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

table {
    border: 0px
}

iframe {
    border: 0px
}

/* Working down the page */

/* Web form link */

#divZHTML,
.AccessibleLink {
    display: block;
    background: #fd0;
}

.AccessibleLink a,
#divZHTML a {
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    color: #000;
    font-weight: 600;
}

.AccessibleLink a:hover,
#divZHTML a:hover,
.AccessibleLink a:focus,
#divZHTML a:focus {
    color: #000;
    background: #fd0;
    text-decoration: underline;
}

.HiddenUntilFocused {
    position: fixed;
    top: -1px;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
    background: transparent;
}

.HiddenUntilFocused a {
    height: 1px !important;
    width: 1px !important;
    padding: 0;
    margin: 0;
}

.HiddenUntilFocused a:focus {
    height: auto !important;
    width: auto !important;
    padding: 5px;
}

/* Header frame (and footer) */

#headeriframe,
#footeriframe {
    position: relative;
    display: block;
}

/* The button container - and .f-nav floats it */

.mainbuttonnav {
    padding-bottom: 18px;
    padding-top: 0px;
    width: 100%;
    transition: box-shadow 1s ease-out;
    height: auto;
}

.f-nav {
    z-index: 9999;
    position: fixed !important;
    background: rgba(255, 255, 255, 0.9) !important;
    max-width: 960px;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    margin-top: 0 !important;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width:700px) {
    .f-nav {
        display: none !important;
    }
}

.contentcontainer {
    position: relative;
    margin: 0 auto;
    background: #FFFFFF;
    overflow: visible;
}

/* For space between buttons */

.spacer {
    width: 12px;
    display: inline-block;
    *display: inline;
}

.space-after {
    margin-right: 12px !important;
}

/* All buttons */
.control,
.control:active,
.control:hover,
.controlsubmit,
.controlsubmit:hover,
.controlsubmit:active {
    cursor: pointer;
    text-decoration: none;
}

/* Main button style (not Submit buttons) */
.control {
    padding: 4px 12px;
    border-image: none;
    text-align: center;
    line-height: 20px;
    font-size: 16px; /* Same size as form content */ 
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 0;
    vertical-align: middle;
    background: (0,0,0,0);
    color: #0b0c0c;
    box-shadow: 0 3px 0 #0b0c0c;
    border: 1px #0b0c0c solid;
}

.control:hover {
    background: #b1b4b6;
    color: #0b0c0c;
}

.control:focus {
    background: #fd0;
    border-color: #0b0c0c;
    box-shadow: 0 5px 0 #0b0c0c;
}

.control img {
    filter: invert(1);
}

/* Submit button style */
.controlsubmit {
    padding: 6px 16px;
    border-image: none;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 0;
    margin-left: 10px;
    vertical-align: middle;
    background-color: #00703c;
    color: #fff;
    box-shadow: 0 2px 0 #002d18;
    border: 1px #0b0c0c solid;
}

.controlsubmit:hover {
    background-color: #005a30;
    color: #fff;
}

.controlsubmit:focus {
    background: #fd0;
    border-color: #0b0c0c;
    box-shadow: 0 5px 0 #0b0c0c;
    color: #0b0c0c;
}

.ButtonField {
    border: 2px solid #0b0c0c;
    border-radius: 0;
}

.ButtonField:focus {
    outline: 3px solid #fd0;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px;
}

.buttonGroup {
    border-width: 1px;
    border-style: solid;
    border-color: #333;
    /* border-radius: 4px; */
    display: inline-block;
    width: auto;
    position: relative;
    margin: 6px 0 0 0;
    padding: 0;
    vertical-align: middle;
    overflow: hidden;

    color: #fff;
    background: #097582;
    border-bottom: 4px solid #07606a;
}

.buttonGroup:hover {
    border-bottom-color: #023a7b;
}

.buttonGroup button {
    margin: 0;
    float: left;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-right: none;
    height: 20px;
    box-sizing: content-box;
}

.buttonGroup button:first-child {
    border-left: none;
}

.lesspadding {
    padding: 4px 4px;
}

#btnZoomOut2 img,
#btnZoomIn2 img {
    width: 21px;
    height: 21px;
}


/* Important position for floating menu. LEAVE */
/* Not sure if it is so important in EFS Core */

.floatmenupos {
    margin-top: 21px;
    /* IE 9- */
    margin-top: 53px \9;
    margin-left: -77px \9;
}

/* Styles main floating menu elements */

.menububble {
    position: relative;
    width: 350px;
    height: auto;
    padding-bottom: 4px;
    background: #ffffff;
    background: rgba(255, 255, 255, 0.9);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#e5ffffff, endColorstr=#e5ffffff);
    zoom: 1;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border: #929292 solid 1px;
    /*opacity:0.95;*/
    box-shadow: 2px 2px 6px #BFBFBF;
    overflow: visible;
}

.menububble:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 0 15px 15px;
    border-color: #4B4B4B transparent;
    display: block;
    width: 0;
    z-index: 1;
    top: -15px;
    left: 30px;
}

.menububble:before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 0 15px 15px;
    border-color: #efefef transparent;
    display: block;
    width: 0;
    z-index: 0;
    top: -16px;
    left: 30px;
}


/* Styles header region of floating menu */

.menuhead {
    position: relative;
    width: 350px;
    height: 28px;
    padding-top: 6px;
    background: #4b4b4b;
    -webkit-border-radius: 10px 10px 0px 0px;
    -moz-border-radius: 10px 10px 0px 0px;
    border-radius: 7px 7px 0px 0px;
    border: #ffffff solid 0px;
    margin-bottom: 10px;
}


/* Styles page count within header region of floating menu */

.pagecount {
    font: 13pt Arial;
    color: #FFFFFF;
}


/* Sets vertical space between controls within floating menu */

.vertspacer {
    margin-bottom: 10px;
}

.hspacer {
    margin-top: 12px;
}



/* Autosave */

.AutoSaveHtmlContainer {
    padding: 30px 0;
}

.AutoSaveHtmlContainer hr {
    border: none;
    border-top: 1px solid #E0E0E0;
    display: block;
    margin: 20px auto;
    width: 30%;
}

/* AutoSave EFS Core */

#autoSaveContainer {
    margin-top: 8px;
    font-family: 'Open Sans', sans-serif, arial;
    color: #212121;
    font-size: 12pt;
    display: flex;
    align-items: center;
}

#autoSaveContainer.hideReference #autoSaveFormReferenceContainer {
    display: none;
}

#autoSaveDate {
    width: 50%;
    text-align: right;
}

#autoSaveContainer.hideReference #autoSaveDate {
    width: 100%;
    text-align: center;
}

#autoSaveFormReferenceContainer {
    width: 50%;
    text-align: left;
}

#autoSaveContainer .control {
    margin-top: 0;
}

#autoSaveFormReference {
    font-weight: bold;
    user-select: all;
    display: inline-block;
    padding: 6px;
}

#autoSaveDate {
    font-weight: normal;
    color: #767676;
    padding-right: 20px;
}

#autoSaveContainer a {
    text-decoration: underline;
    color: #212121;
    font-size: 90%;
}

#autoSaveContainer a:hover,
#autoSaveContainer a:focus {
    text-decoration: none;
    color: #565699;
}


/* ATTACHMENTS */

/* Attachment colours */

.attachments-button-container {
    border: 1px solid #b3b3b3;
}

.attachments-button-container input[type="button"]:first-child {
    border-right: 1px solid #d1d1d1;
}

.attachments-button-container input[type="button"]:last-child {
    border-left: 1px solid #d1d1d1;
}

.attachments-button-container span {
    background-color: white;
    background-image: linear-gradient(#FFFFFF, #efefef);
}

.attachments-title {
    color: #000;
    border: 1px solid #999;
    background: #efefef;
    background: linear-gradient(to bottom, #ffffff 0%, #efefef 50%, #efefef 51%, #dedede 100%);
}

.attachment-item .attachment-delete a {
    background: #EF5350;
}

.attachment-item .attachment-delete a:hover,
.attachment-item .attachment-delete a:focus {
    background: #E53935;
}

.attachments-drop-zone {
    border: 2px dashed #adadad;
}

.attachments-drop-zone.dragover {
    border: 2px dashed #000045;
}

.attachments-progress-bar>span {
    background-color: #232323;
}

/* Non-colour things */

#spanOnlineAttachments {
    display: block;
    margin: 1em auto;
    /*width: 95%;
    max-width: 650px;*/
    text-align: center;
}

#spanOnlineAttachments #tblAttachTable {
    width: 95%;
    max-width: 650px;
    margin: auto;
}

.attachments-button-container {
    display: inline-block;
    overflow: hidden;
    border-radius: 3px;
}

.attachments-button-container * {
    vertical-align: middle;
}

.attachments-button-container input[type="button"] {
    margin: 0;
    border: none;
    font-family: Arial, sans-serif;
    border-radius: 0;
    min-width: 225px;
    height: 30px;
}

.attachments-button-container span {
    padding: 1em;
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

@media(max-width: 700px) {
    .attachments-button-container {
        border: none;
        border-radius: 0;
    }

    .attachments-button-container input[type="button"] {
        border-right: 1px solid #d1d1d1;
        display: block;
        margin: 0.5em auto;
        border: 1px solid #d1d1d1;
        border-radius: 3px;
    }

    .attachments-button-container span {
        background: transparent;
        display: block;
        margin: 0.2em auto;
        padding: 0;
    }
}

#divAttachPanel {
    overflow: hidden;
}

#tblAttachTable {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.attachments-title {
    display: block;
    font-family: 'montserratsemi_bold', sans-serif;
    padding: 0.2em 0.6em;
    text-align: left;
}

.empty-notification {
    font-family: Arial, sans-serif;
    padding: 1em 0;
    color: #676767;
    font-style: italic;
    font-size: 1rem;
    border: 1px solid #adacac;
    border-top: none;
}

.attachment-item {
    display: block;
    position: relative;
    border: 1px solid #adacac;
    border-top: none;
    padding: 0.4em 0;
    overflow: hidden;
    text-align: left;
}

.attachment-item .attachment-delete {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 15%;
    min-width: 75px;
    vertical-align: middle;
    text-align: center;
    font-family: arial, sans-serif;
    color: #F44336;
    line-height: 31px;
    border-left: 1px solid #F44336;
    transition: background 0.2s ease;
}

.attachment-item .attachment-delete a {
    text-decoration: none;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: color 0.2s ease;
}

.attachment-item .attachment-name {
    display: inline-block;
    padding-left: 1em;
    max-width: 60%;
    font-family: Arial, sans-serif;
    color: #464646;
}

#divUploadStatus {
    display: block;
    margin: 0.8em auto;
    padding: 0.2em;
    font-family: Arial, sans-serif;
}

#divUploadStatus a {
    margin: 0 0.2em;
    font-family: Arial, sans-serif;
    color: #EF5350;
}

/* For attachments / resumable */

.attachments-drop-zone {
    display: inline-block;
    overflow: hidden;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    padding: 5px;
}

.attachments-drop-zone-text,
.attachments-upload-success {
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: Arial, sans-serif;
}

.attachments-resumable-buttons-container {
    margin-bottom: 5px;
}

.attachments-progress-bar {
    height: 20px;
    transition: width 1s;
}

.attachments-progress-bar>span {
    height: 100%;
    display: block;
    overflow: hidden;
    position: relative;
    transition: 500ms linear;
    -webkit-transition: 500ms linear;
}

.attachments-progress-bar>span:after {
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    position: absolute;
    background-size: 50px 50px;
    overflow: hidden;
    animation: stripes-move 1s linear infinite;
    -webkit-animation: stripes-move 1s linear infinite;
    background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
    background-image: linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
}

@-webkit-keyframes stripes-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

@keyframes stripes-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

.attachments-progress-bar>span:after {
    -webkit-animation: stripes-move 2s linear infinite;
    animation: stripes-move 2s linear infinite;
}

/* Style initial loading percentage box */

.loadbox {
    margin: auto;
    margin-top: 18px;
    margin-bottom: 22px;
    border: 1pt solid #BBBBBB;
    width: 220px;
    background: #F4F4F4;
    background-color: #F4F4F4;
    border-radius: 8px;
    padding: 9px 9px 14px 9px;
    background-image: linear-gradient(to bottom, #F4F4F4 0%, #CECECE 100%);
}

.loadbox img {
    display: block;
    margin-bottom: 6px;
}

/* Style text within initial loading percentage box */

.loadtext {
    width: 120px;
    margin: auto;
    font: 13pt Arial;
    color: #272727;
}

/* VF Creator footer advert */

.vfViewerFooter {
    background: #E0E0E0;
    font-family: 'montserratsemi_bold', sans-serif;
    text-align: center;
    padding: 25px 5px;
    margin: 20px 0 0 0;
    border-top: 1px solid #C1C1C1;
    color: #231F20;
}

.vfViewerFooter a {
    color: #231F20;
    text-decoration: none;
}

.vfViewerFooter h2 {
    text-shadow: 0 1px 1px #CBE4F8;
    margin: 5px;
    font-size: 14pt;
}

/* Reduced dimensions for those that want less VF advert */
.vfViewerFooter.reduced img {
    height: 43px !important;
    width: 100px !important;
}

.vfViewerFooter.reduced p {
    margin: 0.5em;
}

.vfViewerFooter.reduced {
    padding: 5px;
}

/* VF Creator Advert */
#vfcreator-container {
    transition: opacity 2s;
}

#vfcreator-taglines {
    font-size: 130%;
    font-family: 'montserratregular', sans-serif;
    transition: opacity 0.5s;
}

/* Controls unicode tick symbol for submit button */

.controlsubmit:after {
    content: "\2714";
    font-size: 10pt;
    width: 1em;
    padding-left: 10px;
}

/* FF Unicode over-ride */

@-moz-document url-prefix() {
    .controlsubmit:after {
        content: "\2713";
        font-size: 8pt;
    }
}

/* Controls unicode menu symbol for menu button */

.menuicon:before {
    content: "\2630";
    font-size: 9pt;
    width: 1em;
    padding-right: 10px;
}

/* FF Unicode over-ride */

@-moz-document url-prefix() {
    .menuicon:before {
        font-size: 8pt;
    }
}

@media (max-width: 700px) {
    #autoSaveContainer {
        flex-direction: column;
    }

    #autoSaveDate,
    #autoSaveFormReferenceContainer {
        width: 100% !important;
        text-align: center !important;
        padding-right: 0 !important;
    }
}